home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Biomorph 0.77 / Biomorph src / default.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-26  |  497 b   |  21 lines  |  [TEXT/ALFA]

  1. #include "complex.h"
  2. #include "morph.h"
  3. #include "default.h"
  4.  
  5. /*****************************************
  6. ** default.c
  7. **
  8. ** this module has the default calculation
  9. ** routine to use.  This is so if resources
  10. ** can't be retrieved for some reason, we can
  11. ** still operate to some extent.
  12. ******************************************/
  13.  
  14.  
  15. void Default(ImagPt *Zold, ImagPt *C, ImagPt *Znew)
  16. {
  17.     ImagPt temp;
  18.     // calculate z^2-c  -- the Mandelbrot equation
  19.     SquareC(Zold, &temp);
  20.     SubC( &temp, C, Znew);
  21. }